{include file='public/head'}
<body>
<style type="text/css" media="screen">
    header {
        color: black;
    }

    .bianti td {
        text-align: center
    }

    .x-body {
        min-width: 1100px;
    }

    body {
        overflow-x: scroll;
    }
    img {
        width: 100px;
        height: 100px;
        margin-right: 10px;
        float: left;
        cursor: pointer;
    }
    .layui-table {
        margin: 0 0;
    }
</style>
<div class="x-body">
    <form class="layui-form" id='mainForm' enctype="multipart/form-data" method="post" action="productEdit">
        <div class="layui-form-item">
            <table class="layui-table">
                <colgroup>
                    <col width="10%">
                    <col width="15%">
                    <col width="10%">
                    <col width="20%">
                    <col width="10%">
                    <col width="15%">
                    <col width="10%">
                    <col width="10%">
                </colgroup>
                <thead>
                <tr>
                    <th colspan="8" style="text-align: center">基本信息</th>
                </tr>
                </thead>
                <tbody>
                <tr>
                    <td>产品名称</td>
                    <td colspan="7">{$product.proname}</td>
                </tr>

                <tr>
                    <td>产品分类</td>
                    <td>{$product.catename}--{$product.platform}</td>
                    <td>SKU码</td>
                    <td>{$product.skucode}</td>
                    <td>产品编号</td>
                    <td>{$product.code}</td>
                    <td>海关编码</td>
                    <td>{$product.hscode}</td>
                </tr>

                <tr>

                    <td>品牌</td>
                    <td>{$product.brand}</td>
                    <td>英文简称</td>
                    <td>{$product.english}</td>
                    <td>中文简称</td>
                    <td>{$product.chinese}</td>
                    <td>重&nbsp;&nbsp;&nbsp;量(g)</td>
                    <td>{$product.weight}</td>
                </tr>

                <tr>
                    <td>币&nbsp;&nbsp;&nbsp;种</td>
                    <td>{$product.coin}</td>
                    <td>销售价格</td>
                    <td>{$product.saleprice}</td>
                    <td>运&nbsp;&nbsp;&nbsp;费</td>
                    <td>{$product.carriage}</td>
                    <td>成本价￥</td>
                    <td>{$product.cost}</td>
                </tr>

                <tr>
                    <td>适用人群</td>
                    <td>{$product.department}</td>
                    <td>原产国</td>
                    <td>{$product.origin}</td>
                    <td>厂商名称</td>
                    <td>{$product.facturer}</td>
                    <td>厂商编号</td>
                    <td>{$product.number}</td>
                </tr>

                <tr>
                    <td>材料</td>
                    <td>{$product.material}</td>
                    <td>包装材料</td>
                    <td>{$product.package}</td>
                    <td>珠宝类型</td>
                    <td>{$product.gem}</td>
                    <td>金属材质</td>
                    <td>{$product.metal}</td>
                </tr>

                <tr>
                    <td>来&nbsp;&nbsp;&nbsp;源</td>
                    <td colspan="7">{$product.fromurl}</td>
                </tr>

                <tr>
                    <td>简&nbsp;&nbsp;&nbsp;介</td>
                    <td colspan="7">{$product.des}</td>
                </tr>

                <tr>
                    <td>关键词</td>
                    <td colspan="7">{$product.keywords}</td>
                </tr>

                <tr>
                    <td>产品说明</td>
                    <td colspan="7">{$product.content}</td>
                </tr>

                </tbody>
            </table>

            <table class="layui-table">
                <thead>
                <tr>
                    <th colspan="3" style="text-align: center">主产品图片</th>
                </tr>
                </thead>
                <tbody id="productimg">
                <tr>
                    {if isset($product['imgs']) && checkArr($product['imgs'])}
                    <td>
                        {volist name="$product['imgs']" id='vo'}
                        <img src="{$vo}" onclick="previewImg(this)">
                        {/volist}
                    </td>
                    {else/}
                    <td style="text-align: center;color:red" colspan="3">未找到符合条件的结果</td>
                    {/if}
                </tr>
                </tbody>
            </table>

            <table class="layui-table bianti">
                <colgroup>
                    <col>
                    <col width="12%">
                    <col width="12%">
                    <col width="12%">
                    <col width="12%">
                    <col width="12%">
                </colgroup>
                <thead>
                <tr>
                    <th colspan="6" style="text-align: center">商品变体与价格</th>
                </tr>
                </thead>
                <tbody>
                <tr>
                    <th colspan="7">变体类名：{$product.btname}</th>
                </tr>
                <tr style="background-color: #F2F2F2">
                    <td>变体名，双变体用","隔开</td>
                    <td>成本价</td>
                    <td>默认价格</td>
                    <td>销售价格</td>
                    <td>运费</td>
                    <td>库存数量</td>
                </tr>
                </tbody>
                {volist name="shuxing" id='vo'}
                <tbody>
                <tr>
                    <td>{$vo.cname}</td>
                    <td>{$vo.carriage}</td>
                    <td>{$vo.price}</td>
                    <td>{$vo.saleprice}</td>
                    <td>{$vo.cost}</td>
                    <td>{$vo.kucun}</td>
                </tr>
                <tr class="img">
                    {if isset($vo['imgs'])}
                    <td colspan="6">
                        {volist name="vo['imgs']" id='v'}
                        <img src="{$v}" onclick="previewImg(this)">
                        {/volist}
                    </td>
                    {else/}
                    <td style="text-align: center;color:red" colspan="6">该变体暂无图片</td>
                    {/if}
                </tr>
                </tbody>
                {/volist}
            </table>
        </div>
    </form>
</div>

</body>
{include file='public/foot'}